<ul><?php foreach($categorys as $categories ): ?>

    <li> <?php echo $categories->getTitle() ?>  
        <ul> 
            <?php include_partial('category/list', array('category' => Doctrine_Core::getTable('BachkimCategory')->getSubcategory($categories->getId()))) ?>
        </ul>
    </li>
     
    <?php endforeach; ?>
</ul> 